package com.ctshk.rpc.tour.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.ctshk.common.model.BaseEntity;
import com.ctshk.common.model.IBaseEntity;
import com.ctshk.rpc.tour.req.FoodJson;
import com.ctshk.rpc.tour.req.HotelJson;
import com.ctshk.rpc.tour.req.ScenicJson;
import com.ctshk.rpc.tour.req.TrafficJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 行程每日介绍
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "t_series_trip_schedule_itinerary_day",autoResultMap = true)
@ApiModel(value="SeriesTripScheduleItineraryDay对象", description="行程每日介绍")
public class SeriesTripScheduleItineraryDay extends BaseEntity implements IBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "行程ID")
    private Long tripId;

    @ApiModelProperty(value = "第几天")
    private Integer day;

    @ApiModelProperty(value = "行程标题")
    private String title;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    @ApiModelProperty(value = "交通信息json")
    private List<TrafficJson> trafficJson;

    @ApiModelProperty(value = "交通备注")
    private String trafficRemark;

    @ApiModelProperty(value = "餐饮早餐")
    private String foodBreakfast;

    @ApiModelProperty(value = "餐饮午餐")
    private String foodLunch;

    @ApiModelProperty(value = "餐饮晚餐")
    private String foodSupper;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    @ApiModelProperty(value = "餐饮信息json")
    private List<FoodJson> foodJson;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    @ApiModelProperty(value = "餐饮图片")
    private List<String> foodPhotoJson;

    @ApiModelProperty(value = "餐饮备注")
    private String foodRemark;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    @ApiModelProperty(value = "住宿信息json")
    private List<HotelJson> hotelJson;

    @ApiModelProperty(value = "住宿备注")
    private String hotelRemark;

    @TableField(typeHandler = FastjsonTypeHandler.class,javaType = true)
    @ApiModelProperty(value = "景点json")
    private List<ScenicJson> scenicJson;

    @ApiModelProperty(value = "备注信息")
    private String dayRemark;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;



}
